package com.lxz.bookmanager.service.impl;

import com.lxz.bookmanager.entity.Reader;
import com.lxz.bookmanager.mapper.ReaderMapper;
import com.lxz.bookmanager.service.ReaderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReaderServiceImpl implements ReaderService {

    @Autowired
    private ReaderMapper readerMapper;

    @Override
    public List<Reader> getAllReader() {
        return readerMapper.getAllReader();
    }

    @Override
    public String getReaderName(String readerId) {
        return readerMapper.getReaderName(readerId);
    }

    @Override
    public Reader getReaderInfo(String readerId) {
        return readerMapper.getReaderInfo(readerId);
    }

    @Override
    public void updateInfo(Reader reader) {
        readerMapper.updateInfo(reader);
    }
}
